<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <button>动起来</button>
    <div></div>
    <script src="../jquery.min.js"></script>
    <script>
        $(function() {
            $('button').click(function() {
                $('div').animate({
                        left: 500,
                        top: 300,
                        opacity: 0.4,
                        width: 500
                    },
                    500
                )
            })
        })
    </script>
</body>

</html>